package com.glsc.ngateway.platform.service.feign;

/*
import com.glsc.glam.conf.FeignConfiguration;
*/

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Descirpion Feign 接口调用 SendFax
 */


@FeignClient(name = "GatewayFeignFaxService", url = "${gateway.fax.service.endpoint}")
public interface IFeignFaxService {


    @RequestMapping(method = RequestMethod.GET, value = "/fax/sendFax")
    public String sendFax(@RequestParam("sender") String sender,
                          @RequestParam("receiver") String receiver,
                          @RequestParam("receiverPhone") String receiverPhone, // 校验，座机
                          @RequestParam("ldc") String ldc, // 区号
                          @RequestParam("mobile") String mobile, // 需要校验
                          @RequestParam("title") String title,
                          @RequestParam("fileId") String fileId,
                          @RequestParam(value = "sendTime", required = false, defaultValue = "") String sendTime,
                          @RequestParam(value = "receiverMobile", required = false, defaultValue = "") String receiverMobile,
                          @RequestParam(value = "isMessage", required = false, defaultValue = "1") String isMessage,
                          @RequestParam(value = "isBook", required = false, defaultValue = "0") String isBook,
                          @RequestParam(value = "isRecvMessage", required = false, defaultValue = "0") String isRecvMessage);


}
